home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d17
/
pf260.arc
/
PF.DOC
< prev
next >
Wrap
Text File
|
1991-06-11
|
17KB
|
374 lines
Product: Port Finder mcTRONic Systems
Date: June 12, 1991 7426 Cornwall Bridge Ln.
Document: Product Information Houston, TX 77041-1709
Version: PF.COM R2.60 (713) 462-7687
PF.SYS R1.11 Hours: 5-10 PM M-F CST
CIS#: 74365,1716
Port Finder is a COM and LPT port utility program. Its
primary purpose is to activate COM3 or 4 on computers that have
the hardware and also use PC or MS DOS 3.3, 4.0 or higher.
In addition to COM port activation, Port Finder allows all
possible COM to COM and LPT to LPT port swaps. Port swapping
allows use of COM3 and 4 in programs that only permit entry of
COM1 or 2. In addition, both COM and LPT port swapping is
useful for programs that are preconfigured to use a port other
than the one you wish to use. You may find that it is easier to
swap ports instead of reconfiguring your program or swapping
cables.
Port Finder comes in two forms. The first is PF.COM
which performs all the aforementioned functions. PF.COM is
usually added to your AUTOEXEC.BAT file and run each time you
startup your computer. PF.COM can also be run at any time from
the DOS prompt or used in batch files. The second form is PF.SYS
which is a device driver and must be run from your CONFIG.SYS
file on startup only. PF.SYS allows only COM to COM port
swaps and is intended for use with other device drivers that
might use COM3 or 4 directly or indirectly after a port swap.
In addition to activating ports and port swapping, both
PF.COM and PF.SYS will display actual COM port addresses in HEX.
Also PF.COM will display the LPT port addresses in HEX, your
computer type, BIOS date, DOS version, display adapter type,
total base and extended memory, XMS memory total with XMS ver-
sion, and total expanded memory with EMS version. All of
this information can be very helpful when setting up a computer
or troubleshooting a port or other problems.
For your information, any program that bypasses DOS and
directly addresses the COM or LPT ports will not be affected in
any way by Port Finder. Many modem programs bypass DOS in
order to achieve higher port speeds or the ability to multi-
task both COM and LPT ports for simultaneous use. This (bypass
DOS) is not a problem with such a program as PROCOMM Plus as it
works with both COM3 and 4. There are other programs which
do not permit entry of COM3 and 4, who directly address the
hardware, and will not work with Port Finder. At least with
Port Finder, your computer will know that COM3 or 4 is present
as there will be many more pro- grams that will work properly
with COM3 or 4 after running Port Finder.
Port Finder has gained some fame after being recommended in
three different magazine articles. The first was in the Advi-
sor column of PC Magazine on October 17, 1989. The second
1
in the July 1990 issue of Vulcan's Computer Monthly. The third
mention came on January 1991 in PC Computing. Thanks to these
publications for their faith in Port Finder.
USAGE:
Neither PF.COM nor PF.SYS require any runtime parameters to
display COM port addresses or to activate COM3 or 4 ports.
PF.COM will also automatically display LPT port addresses as
well as other system information. DOS 3.3 or 4.0 only support
access to a maximum of 4 COM and 3 LPT ports (though your BIOS
does allocate a location for LPT4).
The PF.COM runtime parameters in an AUTOEXEC.BAT file are:
Syntax: [d:\path\]pf [parm1] [parm2]
Do not include the brackets "[" or "]" which indicate op-
tional information. d:\path\ = optional drive and path.
[parm1] and/or [parm2] = optional parameters
H = Display help screen C23 = Swap COM ports 2 & 3
RC = Reset COM port addressing C24 = Swap COM ports 2 & 4
RL = Reset LPT port addressing C34 = Swap COM ports 3 & 4
C12 = Swap COM ports 1 & 2 L12 = Swap LPT ports 1 & 2
C13 = Swap COM ports 1 & 3 L13 = Swap LPT ports 1 & 3
C14 = Swap COM ports 1 & 4 L23 = Swap LPT ports 2 & 3
The PF.SYS runtime parameters in a CONFIG.SYS file are:
Syntax: device=[d:\path\]pf.sys [parm1] [parm2]
Do not include the brackets "[" or "]" which indicate op-
tional information. d:\path\ = optional drive and path.
[parm1] and/or [parm2] = optional parameters
C12 = Swap COM ports 1 & 2 C23 = Swap COM ports 2 & 3
C13 = Swap COM ports 1 & 3 C24 = Swap COM ports 2 & 4
C14 = Swap COM ports 1 & 4 C34 = Swap COM ports 3 & 4
NOTES:
All parameters can be in upper or lower case. The COM and
LPT port addresses displayed always indicate the final location
after all port activations, port swaps or port resets have
been executed. Enter all port numbers with low first, then
high. If you become confused as to which port address belongs
where, just use the RC or RL commands to restore the ports to
their correct locations.
2
Port Finder performs a checksum when it loads. If it is not
correct, the program will terminate with an error message. If
this happens to you stop using the version you have. Request a
new copy of the program if you purchased it from mcTRONic
Systems or download a new copy from the RBBS you got it from. I
would like to hear about any such problems.
In addition to the other features mentioned, when you load
either PF.COM or PF.SYS, Port Finder will determine if you have
a joystick port and add that information to your equipment
list. When IBM first came out with the PC and its BIOS, the
BIOS would do this for you. When IBM came out with the AT
BIOS they left out this feature. Whether your joystick is
added to your equipment list or not does not seem to make any
difference in your ability to use that port. The only problem
is that there are many programs that list your equipment as
found by your BIOS and if the joy- stick presence is not in-
cluded, these programs will say you do not have a joystick,
even when you do. I don't know about you, but if a program
does indicate a joystick is present or not, I would like it to
say YES if I do have one.
TECHNICAL DATA:
Your computer BIOS assigns logical COM and LPT ports
numbers, from low too high, to all responding I/O ports in
order as they are found, and non-responding I/O port ad-
dresses are skipped. Thus if you had but one COM port, and it
was the address for COM2, your computer BIOS would assign it to
COM1 because no real COM1 address was present. Port Finder,
which is used as an extension of your computer BIOS, also acti-
vates COM3 and 4 ports in the same manner. In fact, if you
only had a COM3 or 4 port in your system, Port Finder would
assign these ports to COM1 and 2. In addition, Port Finder
will activate up to 4 COM port addresses, if your system had
four ports and two of them were not the normal COM1 and 2
addresses.
COM PORT ADDRESSES:
MACHINE COMx I/O INT MEM ACT PORT
ALL COM1 3F8 HEX IRQ4 40:00 NO
ALL COM2 2F8 HEX IRQ3 40:02 NO
PC/XT/AT COM3 3E8 HEX IRQ4 40:04 YES
PC/XT/AT COM4 2E8 HEX IRQ3 40:06 YES
PC/XT/AT COM3 3E0 HEX IRQ4 40:04 YES
PC/XT/AT COM4 2E0 HEX IRQ3 40:06 YES
PC/XT/AT COM3 338 HEX IRQ4 40:04 YES
PC/XT/AT COM4 238 HEX IRQ3 40:06 YES
3
COM PORT ADDRESSES: (cont.)
MACHINE COMx I/O INT MEM ACT PORT
PS/2 COM3 3220 HEX IRQ3 40:04 YES
PS/2 COM4 3228 HEX IRQ3 40:06 YES
PS/2 COM5 4220 HEX IRQ3 NONE NO
PS/2 COM6 4228 HEX IRQ3 NONE NO
PS/2 COM7 5220 HEX IRQ3 NONE NO
PS/2 COM8 5228 HEX IRQ3 NONE NO
SERIAL PORT COUNT IS AT MEM LOCATION 40:11 BITS 2, 3 & 4
LPT PORT ADDRESSES:
LPTx MEM I/O COMMENT
LPT1 40:08 3BC HEX MAY BE INCLUDED ON MDA OR OTHER CARD
LPT2 40:0A 378 HEX MAY BE ADDRESSED AS LPT1 ON PC/XT/AT
LPT3 40:0C 278 HEX MAY BE ADDRESSED AS LPT2 ON PC/XT/AT
BATCH FILE ERRORLEVEL:
The Port Finder program PF.COM can be used in a batch file
to determine the COM ports that are present. Port Finder
exits with an errorlevel number which corresponds to the ports
active in your system. All possible combinations are covered.
ERRORLEVEL 0 - NO COM PORTS ERRORLEVEL 8 - COM4
ERRORLEVEL 1 - COM1 ERRORLEVEL 9 - COM1,4
ERRORLEVEL 2 - COM2 ERRORLEVEL 10 - COM2,4
ERRORLEVEL 3 - COM1,2 ERRORLEVEL 11 - COM1,2,4
ERRORLEVEL 4 - COM3 ERRORLEVEL 12 - COM3,4
ERRORLEVEL 5 - COM1,3 ERRORLEVEL 13 - COM1,3,4
ERRORLEVEL 6 - COM2,3 ERRORLEVEL 14 - COM2,3,4
ERRORLEVEL 7 - COM1,2,3 ERRORLEVEL 15 - COM1,2,3,4
COMMTEST.BAT IS AN EXAMPLE COM PORT ERRORLEVEL BATCH FILE
INSTALLATION:
Installation of Port Finder on your Hard Disk is easy using
supplied INSTALL program. If you are unfamiliar with ASCII
files and how to edit or create them, you should purchase a book
about DOS commands and file formats. The file PF.COM is nor-
mally added to your AUTOEXEC.BAT file towards the beginning,
but at least before any file that requires COM3 or 4. The
file PF.SYS should be added to your CONFIG.SYS file before
any other device driver that may need COM3 or 4. You do not need
to load both PF.SYS and PF.COM. If you do not have another
device driver that could use COM3 or 4 then use PF.COM in your
AUTOEXEC.BAT file. If you do have a device driver that can use
COM3 or 4, load PF.SYS in your CONFIG.SYS file.
4
As an example of how to install Port Finder, let us
assume the following. You do not need to use PF.SYS in your
CONFIG.SYS file. You are not sure how to modify your AU-
TOEXEC.BAT file that does exist on your C: hard drive root
directory. You have the Port Finder disk and its files
located in the A: drive. You would use the following steps to
install Port Finder in your AUTOEXEC.BAT file.
A:
copy pf.com c:\
c:
cd\
copy con+autoexec.bat autoexec.new
pf
(press F6)^Z
rename autoexec.bat autoexec.old
rename autoexec.new autoexec.bat
You are done! Restart your computer and sit back.
Normally Port Finder might be the second or third command in your
AUTOEXEC.BAT file, after such commands as @echo off, however
the above procedure will work if you know nothing about editing
your AUTOEXEC.BAT file.
ORDERING INFORMATION:
Port Finder cost just $10.95 plus shipping. Shipping is
$3.00 inside the U.S. and $8.00 outside the U.S. in U.S.
funds only. If you order Port Finder from outside the U.S. you
must send a money order or add another $5 for money transfer.
Port Finder comes on 3.5 or 5.25 inch disk, please specify
size with order.
CONSIDERATIONS ON COM PORT SWAPPING:
Port Finder allows all possible COM to COM port swapping,
however not all possible COM port swaps will work on your
system. Without regard to the following rules, any COM port swap
combination may work in your situation. I have included all
possible swap combinations just in case your system does not
work like the norm.
First of all, even though Port Finder will place up to four
COM ports to your disposal, the IBM PC/XT/AT structure was only
designed to have two COM ports work at the same time. The
main restriction is caused by only having two hardware inter-
rupts available to all four COM ports. Through the use
of special software and/or hardware it is possible to run up
to four or more COM ports. Normally however this will not be
the case.
5
If you talk to other experts on COM ports you may get a
different opinion of what is proper in port swapping and what
is not. My view on the subject is as follows:
1. Swap only ports that share the same interrupt. A mouse
driver set for COM1 (IRQ4) will have problems if the mouse is
on COM4 (IRQ3) which was swapped with COM1 (PF C14). If the
mouse was on COM3 (IRQ4) and swapped with COM1 (PF C13) it
should work fine. Therefore swap COM1 with COM3 (PF C13) and
COM2 with COM4 (PF C24). This appears to go against what
Lori Grunin stated in the PC Magazine article. Swap- ping COM1
with COM2 (PF C12) or COM3 with COM4 (PF C34) may still work on
your system. It depends both on the software used and the
actual interrupts your COM ports use.
2. If you are going to use two COM ports at one time they
should be on opposite interrupts. If you are going to use two
ports at once the possibilities are COM1 (IRQ4) with COM2
(IRQ3) (same as COM2 with COM1), COM1 (IRQ4) with COM4 (IRQ3),
COM2 (IRQ3) with COM3 (IRQ4) and COM3 (IRQ4) with COM4 (IRQ3).
Divide your COM port inputs into two groups of two. Pare serial
devices that you will not use at the same time on the same
interrupt (IRQ4 with IRQ4 and IRQ3 with IRQ3).
MICROSOFT WINDOWS CONSIDERATIONS:
If you load either PF.SYS in your CONFIG.SYS file or
PF.COM in your AUTOEXEC.BAT before you run Windows your COM
ports will be activated and Windows will use them. You must add
in your SYSTEM.INI file under [386Enh] the following:
[386Enh]
Com3Base=3e8h (or your address PF lists for COM3)
Com4Base=2e8h (or your address PF lists for COM4)
Com3AutoAssign=2
Com4AutoAssign=2
ComIrqShare=1
If you run Port Finder while in Windows, any ports swaps made
will be temporary. You can use PF in a batch file before you run
another DOS application to use port swapping. You can make port
swaps before you run Windows. The Com?Base= should match your
new COM port assignment.
6